import request from "@/utils/request";

// 获取指定章节的题目列表
export function getTestQuestion(courseId, chapterId) {
    return request.get(`/getTestQuestion/${courseId}/${chapterId}`)
        .then(response => response.data)
        .catch(error => {
            console.error('获取题目失败:', error);
            throw error;
        });
}
